package com.demo.spring.beans.factory.support;

import com.demo.spring.beans.BeansException;
import com.demo.spring.beans.factory.config.BeanDefinition;

import java.lang.reflect.Constructor;

// 对象实例化接口
public interface InstantiationStrategy {

    // 初始化对象
    Object instantiate(BeanDefinition beanDefinition, String beanName, Constructor ctor, Object[] args) throws BeansException;

}
